<template>
  <div class="page-box h100 display-flex czbj">
    <dxtable
      :dataJson="dataJson"
      :portUrl="portUrl"
      :sonRouter="sonRouter"
      :qx="qx"
    ></dxtable>
  </div>
</template>
 <script lang='ts' setup>
import dxtable from "../../../components/util/dxtable.vue";
import { dxget } from "../../../util/index";
import { h, ref, reactive } from "vue";
import { leixing,leixingName } from "../../../util/config";
import { useRouter } from "vue-router";
const { currentRoute } = useRouter();
let types = 0;
if (currentRoute.value.name == "TeamManagement") {
  types = 1;
}
let dataJson = [
  {
    title: "角色名称",
    key: "name",
    search: true, // 是否在搜索栏展示
  },
  {
    title: "修改时间",
    key: "addTime",
    width: "200",
  },
];
const qx = {
  DeletePermissionID: "tjxxroleManagementdel", //删除
  EditPermissionIdentifier: "tjxxroleManagementbj", // 编辑
  NewPermissionIdentifier: "tjxxroleManagementxz", // 新建
  ViewPermissionID: "tjxxroleManagementck", // 查看
};
let portUrl = "tjxx/rolemanagement/rolemanagement";

if(types==1){
  portUrl = "tjxx/rolemanagement/rolemanagement?index=/taskList"
}
const sonRouter = "tjxxAddingRoles";
let formJson = reactive([]);
</script>
 <style scoped>
</style>